﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Domain.Examin
{
    /// <summary>
    /// 流程节点实体
    /// </summary>
    [Table("approvalnodemodel")]
    public class ApprovalNodeModel:BaseEntity
    {
        /// <summary>
        /// 所属流程ID
        /// </summary>
        public long processId { get; set; }
        /// <summary>
        /// 节点名称
        /// </summary>
        [StringLength(255)]
        public string nodeName { get; set; }
        /// <summary>
        /// 节点类型    1:开始、2:审批、3:结束 
        /// </summary>
        public int nodeType { get; set; }
        /// <summary>
        /// 上节点ID
        /// </summary>
        public long? prevnodeId { get; set; }
        /// <summary>
        /// 下节点ID
        /// </summary>
        public long? nextnodeId { get; set; }
        /// <summary>
        /// 节点描述
        /// </summary>
        [StringLength(1000)]
        public string nodeDescription { get; set; }
        /// <summary>
        /// 审批时限（小时）
        /// </summary>
        public int? timeLimit { get; set; }
    }
}
